import java.math.BigDecimal;
import java.text.ParseException;

public class MainClass {

	public static void main(String[] args) throws ParseException {
		Truck t1 = new Truck("Blue", new BigDecimal(1000), 2000);
		Sedan s1 = new Sedan("White", new BigDecimal(1000), 4);
		Suv f1 = new Suv("Black ", new BigDecimal(1000),
				Suv.parseDate("16/04/2000"));

		System.out.println("Truck price: " + t1.getPrice());
		System.out
				.println("Truck discounted price: " + t1.getDiscountedPrice());

		System.out.println("Sedan price: " + s1.getPrice());
		System.out
				.println("Sedan discounted price: " + s1.getDiscountedPrice());

		System.out.println("Ford price: " + f1.getPrice());
		System.out.println("Ford discounted price: " + f1.getDiscountedPrice());

	}

}
